<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/Mock.js/1.0.1-beta1/mock-min.js" type="application/javascript"></script>
    <script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/axios/0.26.0/axios.min.js" type="application/javascript"></script>
    <script src="./mockDate.js"></script>
</head>
<body>

<button id="bt"> 发送请求 </button>

<script>

    const $api = axios.create({
      baseURL:'http://127.0.0.1:4523/m1/1658887-0-default'
    })

     document.querySelector('#bt').addEventListener('click',async ()=>{
       const res = await $api.post('/login');
       console.log('请求的结果',res)
     })

    //




</script>

</body>
</html>
